package com.alibaba.design.mediatorpattern;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/1-21:51
 */
public class User {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String name){
        this.name  = name;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }

}
